package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员对象 xx_member
 * 
 * @author ruoyi
 * @date 2025-02-08
 */
public class XxMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员id */
    private Long memberId;

    /** 会员卡号 */
    @Excel(name = "会员卡号")
    private String memberNo;

    /** 姓名 */
    @Excel(name = "姓名")
    private String memberName;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 用户性别（0男 1女 2未知） */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 会员状态（0正常 1停用） */
    @Excel(name = "会员状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 最后登录IP */
    @Excel(name = "账户初始金额")
    private BigDecimal memberInitAmount;

    /** 最后登录时间 */
    @Excel(name = "账户余额")
    private BigDecimal memberBalanceAmount;

    @Excel(name = "账户赠送余额")
    private BigDecimal memberGiftBalanceAmount;

    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setMemberNo(String memberNo) 
    {
        this.memberNo = memberNo;
    }

    public String getMemberNo() 
    {
        return memberNo;
    }
    public void setMemberName(String memberName) 
    {
        this.memberName = memberName;
    }

    public String getMemberName() 
    {
        return memberName;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setMemberInitAmount(BigDecimal memberInitAmount) 
    {
        this.memberInitAmount = memberInitAmount;
    }

    public BigDecimal getMemberInitAmount() 
    {
        return memberInitAmount;
    }
    public void setMemberBalanceAmount(BigDecimal memberBalanceAmount) 
    {
        this.memberBalanceAmount = memberBalanceAmount;
    }

    public BigDecimal getMemberBalanceAmount() 
    {
        return memberBalanceAmount;
    }


    public BigDecimal getMemberGiftBalanceAmount() {
        return memberGiftBalanceAmount;
    }

    public void setMemberGiftBalanceAmount(BigDecimal memberGiftBalanceAmount) {
        this.memberGiftBalanceAmount = memberGiftBalanceAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("memberId", getMemberId())
            .append("memberNo", getMemberNo())
            .append("memberName", getMemberName())
            .append("email", getEmail())
            .append("phone", getPhone())
            .append("sex", getSex())
            .append("address", getAddress())
            .append("password", getPassword())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("memberInitAmount", getMemberInitAmount())
            .append("memberBalanceAmount", getMemberBalanceAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
